const express = require('express')
const router = express.Router()
const user_handler = require('../router_handler/user')
const bodyParser = require('body-parser')
const jwt = require('jsonwebtoken')
const jsonParser = bodyParser.json()

router.post('/reguser', user_handler.regUser)

router.post('/login',jsonParser, user_handler.login)

router.get('/index', user_handler.getIndex)

router.post('/updateindex',jsonParser, user_handler.updateIndex)

router.get('/lunbotu', user_handler.getLunbotu)

router.post('/updateLunbotu',jsonParser, user_handler.updateLunbotu)

router.post('/addLunbotu', jsonParser, user_handler.addLunbotu)

module.exports =router